#include <my_head.h>

int main(int argc, const char *argv[]){
    if(3 != argc){
        printf("Usage : %s src_file dest_file\n", argv[0]);
        return -1;
    }
    FILE *fp1 = fopen(argv[1], "r");
    if(NULL == fp1)
        ERR_LOG("fopen error");
    FILE *fp2 = fopen(argv[2], "w");
    if(NULL == fp2)
        ERR_LOG("fopen error");
    char buff[10];
    while(NULL != fgets(buff, sizeof(buff), fp1)){
        fputs(buff, fp2);
    }
    fclose(fp1);
    fclose(fp2);
    return 0;
}